// 用户相关的请求

// 1. 注册请求
import request from '@/utils/request'

export const registerApi = data => {
  return request({
    url: '/h5/user/register',
    method: 'POST',
    data: data
  })
}

// 登录请求
export const loginApi = data => {
  return request({
    url: '/h5/user/login',
    method: 'POST',
    data: data
  })
}

// 获取用户信息
export const getApi = () => {
  return request({
    url: '/h5/user/currentUser',
    method: 'GET'
  })
}
